<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="jQuery.min.js"></script>
</head>

<body>
    <div>惊喜不，一外部</div>
    <div>惊喜不，一外部</div>
    <div>惊喜不，一外部</div>
    <div>惊喜不，一外部</div>
    <div>惊喜不，一外部</div>
    <ul>
        <li>相同的操作</li>
        <li>相同的操作</li>
        <li>相同的操作</li>
        <li>相同的操作</li>
        <li>相同的操作</li>
    </ul>
    <script>
        console.log($("div"));
        $("div").css('background', 'pink');
        $("ul li").css('color', 'red');
    </script>
</body>

</html>